<?php
/**
* Management package
* @package Management
*/
class MgmRequest extends CoreRequestJson
{
	final public function Process()
	{
		$action = Core::PostVar("action", false, "string");
		if ( $action )
		{
			if ( isset( $this->actions[ $action ] ) )
				call_user_func( array($this, $this->actions[ $action ]) );
			else
				$this->SetError(I18N("Invalid action: '$action' is not available for this management request?"));
		}
		else
			$this->SetError(I18N("Action is not set. Action is required!"));
	}
}
?>